package cn.buk.tms.eotms.dao.factory;


import cn.buk.tms.eotms.entity.OperationLog;

import static cn.buk.tms.common.constant.TmsOrderConstant.*;

/**
 * @author yfdai
 */
public class OperationLogFactory {

    /**
     * 创建机票订单操作日志对象
     */
    public static OperationLog createFlightOrderOperationLog() {
        OperationLog o = new OperationLog();

        o.setObjectType(OPERATING_OBJECT_FLIGHT_ORDER);

        return o;
    }



    public static OperationLog createFlightRefundOrderOperationLog() {
        OperationLog o = new OperationLog();
        o.setObjectType(OPERATING_OBJECT_FLIGHT_REFUND_ORDER);
        return o;
    }

    public static OperationLog createFlightChangeOrderOperationLog() {
        OperationLog o = new OperationLog();
        o.setObjectType(OPERATING_OBJECT_FLIGHT_CHANGE_ORDER);
        return o;
    }

    public static OperationLog createVasOrderOperationLog() {
        OperationLog o = new OperationLog();
        o.setObjectType(OPERATING_OBJECT_VAS_ORDER);
        return o;
    }

    public static OperationLog createHotelOrderLog() {
        OperationLog o = new OperationLog();
        o.setObjectType(OPERATING_OBJECT_HOTEL_ORDER);
        return o;
    }

    public static OperationLog createCarOrderLog() {
        OperationLog o = new OperationLog();
        o.setObjectType(OPERATING_OBJECT_CAR_ORDER);
        return o;
    }


}
